package com.example.security.provider.base;

import com.example.security.domain.ShiroUserDetail;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @Author: lex
 * @Date: 2019/2/1
 */
public interface UserProvider {

    AuthenticationInfo doGetAuthenticationInfo(UsernamePasswordToken token) throws AuthenticationException;

    ShiroUserDetail getUserDetail(UsernamePasswordToken token) throws AuthenticationException;
}
